main: yield.o thread.o main.o
	cc -o $@ $^

main.o: main.c
	cc -g -c $<

yield.o: yield.S
	nasm -f elf64 $<

thread.o: thread.c
	cc -g -c $<

clean:
	rm -rf *.o a.out main
